<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="http://cdn.bootcss.com/twitter-bootstrap/2.2.2/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/css/datetimepicker.css"
          rel="stylesheet">
    <link rel="shortcut icon" type="image/x-icon" href="/static/imgs/美女.jpg"/>

    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
    <script src="http://www.bootcss.com/p/bootstrap-datetimepicker/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <title>addBook</title>
    <style>
        .smart-green {
            /*margin-left: auto;*/
            margin-right: auto;
            max-width: 500px;
            /*background: #F8F8F8;*/
            padding: 30px 30px 20px 30px;
            font: 12px Arial, Helvetica, sans-serif;
            color: #666;
            border-radius: 5px;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
        }

        .smart-green h1 {
            font: 24px "Trebuchet MS", Arial, Helvetica, sans-serif;
            padding: 20px 0 20px 40px;
            display: block;
            margin: -30px -30px 10px -30px;
            color: #FFF;
            background: #9DC45F;
            text-shadow: 1px 1px 1px #949494;
            border-radius: 5px 5px 0 0;
            -webkit-border-radius: 5px 5px 0 0;
            -moz-border-radius: 5px 5px 0 0;
            border-bottom: 1px solid #89AF4C;
        }

        .smart-green h1 > span {
            display: block;
            font-size: 11px;
            color: #FFF;
        }

        .smart-green label {
            display: block;
            margin: 0 0 5px;
        }

        .smart-green label > span {
            float: left;
            margin-top: 10px;
            color: #5E5E5E;
        }

        .smart-green input[type="text"], .smart-green input[type="email"],
        .smart-green textarea, .smart-green select {
            color: #555;
            height: 30px;
            line-height: 15px;
            width: 100%;
            padding: 0 0 0 10px;
            margin-top: 2px;
            border: 1px solid #E5E5E5;
            background: #FBFBFB;
            outline: 0;
            -webkit-box-shadow: inset 1px 1px 2px rgba(238, 238, 238, 0.2);
            box-shadow: inset 1px 1px 2px rgba(238, 238, 238, 0.2);
            /*font: normal 14px/14px Arial, Helvetica, sans-serif;*/
        }

        .smart-green textarea {
            height: 100px;
            padding-top: 10px;
        }

        .smart-green .button {
            background-color: #9DC45F;
            border-radius: 5px;
            -webkit-border-radius: 5px;
            /*-moz-border-border-radius: 5px;*/
            border: none;
            padding: 10px 25px 10px 25px;
            color: #FFF;
            text-shadow: 1px 1px 1px #949494;
        }

        .smart-green .button:hover {
            background-color: #80A24A;
        }

    </style>
</head>
<body>
<form id="addBookForm" enctype="multipart/form-data" action="/book" method="post">
    <table>
        <tr class="active">
            <td><span>书名:</span></td>
            <td><label><input type="text" name="bookName" class="form-control"/></label></td>
        </tr>
        <tr>
            <td>出版日期:</td>
            <td><!--<div class='input-group date'>
                <label>
                    <input type='text' name="publishDate" class="form-control" />
                </label>
                &lt;!&ndash;<span class="input-group-addon">
                    <span class="glyphicon glyphicon-calendar"></span>
                </span>&ndash;&gt;
            </div>-->
                <label><input type="text" name="publishDate" class="form-control"/></label>
            </td>
        </tr>
        <tr>
            <td>单价:</td>
            <td><label><input type="text" name="price" class="form-control"/></label></td>
        </tr>
        <tr>
            <td>库存数量:</td>
            <td><label><input type="text" name="amount" class="form-control"/></label></td>
        </tr>
        <tr>
            <td>出版社:</td>
            <td><label><input type="text" name="publisherName" class="form-control"/></label></td>
        </tr>
        <tr>
            <td>图片:</td>
            <td><input type="file" name="file"/></td>
        </tr>
        <tr>
            <td colspan="2"><input class="btn-info" type="submit" value="上传"/></td>
        </tr>
    </table>
</form>

<a href="/books">所有书籍</a>


<div>
    <a href="/deleteAllBook" class="btn-danger">删除所有书籍</a>
</div>
<form method="post" class="smart-green">
    <label><span>页面标题 :</span>
        <input id="title" type="text" name="title"/>
    </label>
    <!-- <label><span>邮箱 :</span>
         <input id="email" type="email" value="" name="email" /> &nbsp; &nbsp; &nbsp; &nbsp;
         <div class="error-msg"></div></label>-->
    <label><span>关键字 :</span>
        <input id="keywords" type="text" value="" name="keywords"/>
    </label>
    <label><span>页面描述 :</span>
        <textarea id="description" name="description"></textarea>
        <label><input type="submit" class="button" value="确定"/></label>
        <input type="hidden" name="csrfmiddlewaretoken" value="SfHkbL4feo1G00sJQtbO7TtLN4c2BUwa"/>
    </label>
</form>

<div  class="input-append date form_datetime">
    <label>
        <input size="20" type="text" value="" readonly="readonly">
    </label>
    <span class="add-on"><i class="icon-remove"></i></span>
    <span class="add-on"><i class="icon-calendar"></i></span>
    <button onclick="addThreeOptions()">test</button>
</div>
<div id="myDiv"style="background-color: #1c7430">
    1123
</div>

<script>

    $(function () {

    });
    $(".form_datetime").datetimepicker({
        autoclose: true,
        pickerPosition: "bottom-left",
        format: 'yyyy-mm-dd',
        startView: "year", //初始化视图是‘年’
        minView: "month",//最精确视图为'月'
        maxView: "decade",//最高视图为'十年'
        todayBtn: true
    });

    function addThreeOptions(){
        $('#myDiv').append('<select id="addedOption">\n' +
            '        <option>option1</option>\n' +
            '        <option>option2</option>\n' +
            '        <option>option3</option>\n' +
            '    </select>')
    }


</script>
</body>
</html>